package com.demo.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.entity.TEsbUser;
import com.demo.mapper.TEsbUserMapper;
import com.demo.service.ITEsbUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author author
 * @since 2022-08-04
 */
@Service
public class TEsbUserServiceImpl extends ServiceImpl<TEsbUserMapper, TEsbUser> implements ITEsbUserService {


    @Override
    public IPage<TEsbUser> selectPage(Integer pageNum, Integer pageSize) {
        Page<TEsbUser> tEsbUserPage = new Page<>(pageNum , pageSize);
        IPage<TEsbUser> iPage = this.baseMapper.selectPage(tEsbUserPage, null);
        return iPage;
    }
}
